Skip to content

feat: add support for data labels in donut charts#9308

Open
djbarnwal wants to merge 3 commits into
mainfrom
feat/donut-data-labels
Open

feat: add support for data labels in donut charts#9308
djbarnwal wants to merge 3 commits into
mainfrom
feat/donut-data-labels

Conversation

@djbarnwal
Copy link
Copy Markdown
Member

@djbarnwal djbarnwal commented Apr 27, 2026

Ability to toggle on data labels in pie/donut charts.

Merge this after #9303

https://linear.app/rilldata/issue/APP-818/canvas-pie-chart-unreadable-with-many-slices-add-other-grouping-hover

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@djbarnwal djbarnwal requested a review from a team as a code owner April 27, 2026 15:31
@ericokuma
Copy link
Copy Markdown
Contributor

cc @Di7design for design review

@ericokuma ericokuma requested a review from Di7design April 30, 2026 18:15
Copy link
Copy Markdown

@Di7design Di7design left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved the functionality.

However, we need a better way to improve the label display on small slices, especially for edge cases.
Image

One idea is to hide the label that doesn’t fit in small slices and add a notification below it.
Image

Alternatively, if we need to display all labels for small slices, we could use a line to connect the labels. However, I would recommend displaying 6 labels and then showing “+” followed by “n” more labels.

Image

Please evaluate the efforts for those options and efforts. We can release the feature first, then design and iterate on the follow-up.

@ericokuma

Copy link
Copy Markdown
Contributor

Agreed! I'm okay with either solutions.

@mike.d, any input here?

@djbarnwal djbarnwal requested a review from AdityaHegde May 11, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants